package com.maijinjie.common.bean;

import java.util.List;

/**
 * API分页对象
 * @version 1.0
 * @author GhostarX ( 王欣逸 ) 100992995@qq.com
 * @param <T>
 */
public class ApiPagination<T> {
	/** 当前页，初始化第1页 */
	private int page;
	/** 每页大小，每页初始化100条记录 */
	private int rows;
	
	/** 总记录数 */
	private int rowCount;
	/** 总页数 */
	private int pageCount;
	/** 记录集 */
	private List<T> list;
	
	public ApiPagination(){
		this.page = 1;
		this.rows = 100;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public int getRowCount() {
		return rowCount;
	}

	public void setRowCount(int rowCount) {
		this.rowCount = rowCount;
	}

	public int getPageCount() {
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}
	
}
